<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String info = request.getParameter("info") == null ? "0" : request.getParameter("info");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>首页</title>
<link rel="stylesheet" type="text/css" href="css/login.css"/>
<script type="text/javascript" src="easyui/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript">
	function submit(){
		var username = $("#username").val();
		if($.trim(username) == ""){
			$.messager.alert("提示",'<br />请输入账号！','info');
        	return false;
		}
		var password = $("#password").val();
		if(password == ""){
			$.messager.alert("提示",'<br />请输入密码！','info');
        	return false;
		}
		$("#fm").submit();
	}
</script>
</head>
<body>
	<div class='login_panel'>
		<form method="POST" action="user/login.do" id="fm">
		<table>
		<%
			if(info.equals("1") ){
		%>
			<tr>
				<td></td>
				<td>
					<span class='login_err'>账号或密码错误，请重新登录</span>
				</td>
			</tr>
		<%
			}
		%>	
			<tr>
				<td>账号</td>
				<td>
					<input type="text" id='username' class="login_input" name="user.username" value="M1000"/>
				</td>
			</tr>
			<tr>
				<td>密码</td>
				<td>
					<input type="password" id='password' class="login_input" name='user.password' value="web12#"/>
				</td>
			</tr>
			<tr>
				<td></td>
				<td>
					<input type="button" class="login_button" onclick='submit()' value="登录"/>
				</td>
			</tr>
		</table>
		</form>
	</div>
</body>
</html>